package passworks.Gates;

import passworks.*;

public class Node extends GateBase {

    public Node(int id) {
        super(id);
        className = "OR";
        
        Logger.Print(className, className, Direction.IN, ownID);
        Logger.Print(className, className, Direction.OUT, ownID);
    }

    public void SetOutputs() {
        Logger.Print(className, "SetOutputs", Direction.IN, ownID);
        /*
         * Tenyleges logika
         */
        for (Wire w : output)
        {
            w.SetState(input.get(0).GetState());
        }

        Logger.Print(className, "SetOutputs", Direction.OUT, ownID);
    }
}
